package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.HandleOption;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单信息的返回类
 *
 * @author chenxu
 * @since 2022/04/09 16:24
 */
@NoArgsConstructor
@Data
public class OrderListWxVO {

    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<ListDTO> list;

    @NoArgsConstructor
    @Data
    public static class ListDTO {
        private String orderStatusText;
        private int aftersaleStatus;
        private boolean isGroupin;
        private String orderSn;
        private BigDecimal actualPrice;
        private List<GoodsListDTO> goodsList;
        private int id;
        private HandleOption handleOption;


        @NoArgsConstructor
        @AllArgsConstructor
        @Data
        public static class GoodsListDTO {
            private int number;
            private String picUrl;
            private int price;
            private int id;
            private String goodsName;
            private String[] specifications;
        }
    }
}
